
const Layout = () => import("@/layout/index.vue");

// 我的订单
// 收款单
// 应收账款
// 退款单
// 订单统计
const routes = [
    {
        path: "/order",
        name: "Order",
        component: Layout,
        meta: {
            title: "订单管理",
            icon: "Grid",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/order/mine",
                name: "OrderMine",
                component: () => import("@/pages/order/mine.vue"),
                meta: {
                    title: "我的订单",
                    icon: "Grid",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/order/receipt",
                name: "OrderReceipt",
                component: () => import("@/pages/order/receipt.vue"),
                meta: {
                    title: "收款单",
                    icon: "Grid",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/order/receivable",
                name: "OrderReceivable",
                component: () => import("@/pages/order/receivable.vue"),
                meta: {
                    title: "应收账款",
                    icon: "Grid",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/order/refund",
                name: "OrderRefund",
                component: () => import("@/pages/order/refund.vue"),
                meta: {
                    title: "退款单",
                    icon: "Grid",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/order/statistics",
                name: "OrderStatistics",
                component: () => import("@/pages/order/statistics.vue"),
                meta: {
                    title: "订单统计",
                    icon: "Grid",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            }
        ]
    }
];

export default routes;
